package com.ldu.houserent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ldu.houserent.entity.House;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 图表显示mapper
 */
@Mapper
public interface ChartsMapper extends BaseMapper<House> {

    /*
        查询每个城市房屋的数量
     */
    List<Map> findHouseNumByCity();

    /*
        查询每种出租类型房屋的数量
     */
    List<Map> findHouseNumByRentType();
}
